define(function(require, exports, module) {

'use strict';

var $ = require('$');

var io = require('../../io'),
    Gallery = require('../../gallery/gallery');

/**
 * 图集查询
 *
 * @class Browse
 * @param  {[type]} )
 * @return {[type]}   [description]
 */
var Browse = Gallery.extend({

  defaults: {
    delegates: {
      'dblclick .thumbnail': 'preview'
    },
    // 显示字段更改
    key: {
      // title: 'title',
      // url: 'url',
      // createTime: 'createDate'
    },
    thumbAffix: '!a-1-160x120.jpg'
  },

  preview: function(e) {
    window.open(e.currentTarget.dataset.url, '', '');
  }

});

module.exports = Browse;

});
